<?php
namespace view;

class AdminView {
    private $applicationModel;

    /**
    * __construktor
    */
    public function __construct()     {
        $this->applicationModel = new \model\ApplicationModel();
    }


    /**
    * @return boolean
    */
    //Lägg till ny post
    public function wantsToEditUsers() {
        if (isset($_GET[$this->applicationModel->m_editUsersURL]) ) {
            return true;
        } else {
              return false;
        }
    }


    /**
    * @return boolean
    */
    public function wantsToRemoveUser() {
     if (isset($_GET[$this->applicationModel->m_removeUserURL]) ) {
            return true;
        } else {
              return false;
        }
    }


    /**
    * @return boolean
    */
    public function wantsToSetAdmin() {
     if (isset($_GET[$this->applicationModel->m_setAdminURL]) ) {
            return true;
        } else {
              return false;
        }
    }


    /**
    * @return string
    */
    //Returnerer Adminanvändar-ID
    public function returnSetAdminUserId() {
        $id = $_GET[$this->applicationModel->m_setAdminURL];
        return $id;
    }


    /**
    * @return string
    */
    //Returnerer användar-ID
    public function returnUserId() {
        $id = $_GET[$this->applicationModel->m_removeUserURL];
        return $id;
    }


}

